package request;

import java.util.ArrayList;
import java.util.List;

import util.BitSet;

public class Url {
	private String url;
	private static final BitSet ALLOW_SET = new AllowBitSet();
	
	private static class AllowBitSet extends BitSet {
		@Override
		public int maxSize() {
			return 2;
		}

		@Override
		public List<Integer> wordList() {
			List<Integer> wordList = new ArrayList<>();
			for (int i = 'a'; i <= 'z'; i++) {
				wordList.add(i);
			}
			for (int i = 'A'; i <= 'Z'; i++) {
				wordList.add(i);
			}
			for (int i = '0'; i <= '9'; i++) {
				wordList.add(i);
			}
			
			char[] others = "_-!.~'()*".toCharArray();
			for (char c : others) {
				wordList.add((int) c);
			}
			
			return wordList;
		}
	}
	
	private static boolean isAllowed(char c) {
		return ALLOW_SET.isExist(c);
	}
	
	public static String encode(String s, String charset) {
		for (int i = 0; i < s.length(); i++) {
			char c = s.charAt(i);
		}
		
		return s;
	}
	
	public static void main(String[] args) {
		int[][] a = new int[3][];
		
		//a[0] = new int[5];
		//a[1] = new int[10];
		a[2] = new int[20];
		
		a[2][19] =5;
		System.out.println(a[0][1]);
		//a[0][5] =5;
		//a[1][9] =5;
	}
}
